#include "hcconstnode.h"
#include "hccodenode.h"
#include <gc.h>

const int CONST_INTEGER = 1;
const int CONST_FLOAT = 2;
const int CONST_CHAR = 3;
const int CONST_BOOL = 4;
const int CONST_STRING = 5;

hcconstnode* hcconstnode_create(hcstring* val, int type)
{
    hcconstnode* node = (hcconstnode*) GC_MALLOC(sizeof(hcconstnode));
    node->node_type = NODE_CONSTANT;
    node->const_type = type;
    node->const_val = val;
    node->to_xml = hcconstnode_to_xml;
    return node;
}

char* hcconstnode_to_xml() {
    return 0;
}
